home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / demos / VisualAge for Java 2.0 Entry / setup / data1.cab / ide-e / IDE / cache / PRRBL5 (.txt) < prev    next >
Encoding:
Java Class File  |  1998-09-16  |  1.7 KB  |  27 lines

  1. package com.sun.java.swing;
  2.  
  3. import java.awt.Point;
  4. import java.awt.event.ActionEvent;
  5. import java.awt.event.ActionListener;
  6. import java.awt.event.MouseEvent;
  7.  
  8. class Autoscroller$AutoScrollTimerAction implements ActionListener {
  9.    // $FF: synthetic field
  10.    Autoscroller this$0;
  11.  
  12.    public void actionPerformed(ActionEvent x) {
  13.       if (this.this$0.component.isShowing() && this.this$0.event != null) {
  14.          Point screenLocation = this.this$0.component.getLocationOnScreen();
  15.          MouseEvent e = new MouseEvent(this.this$0.component, this.this$0.event.getID(), this.this$0.event.getWhen(), this.this$0.event.getModifiers(), this.this$0.event.getX() - screenLocation.x, this.this$0.event.getY() - screenLocation.y, this.this$0.event.getClickCount(), this.this$0.event.isPopupTrigger());
  16.          this.this$0.component.superProcessMouseMotionEvent(e);
  17.       } else {
  18.          this.this$0.stop();
  19.       }
  20.    }
  21.  
  22.    // $FF: synthetic method
  23.    Autoscroller$AutoScrollTimerAction(Autoscroller this$0) {
  24.       this.this$0 = this$0;
  25.    }
  26. }
  27.